<template>
  <div>
    <div class="box">
      <div class="left">
        <slot id="123" :con="content" hoppy="打羽毛球" name="left"></slot>
      </div>
      <div class="right"><slot name="right" :arr="arr"></slot></div>
    </div>
  </div>
</template>
<script>
export default {
  name: '',
  data () {
    return {
      content: '我是slot,我要传值',
      arr: [1, 3, 5, 7, 9]
    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  }
}
</script>
<style lang='less'  scoped>
.box {
  width: 500px;
  height: 300px;
  border: 1px solid #000;
  display: flex;
  justify-content: space-around;

  h4 {
    color: red;
  }
}
</style>
